// import Cookies from 'js-cookie'

const TokenKey = 'yuku_token_market';
const ImgSrcKey = 'yuku_imgSrc_market';
const RoleCodeListKey = 'yuku_roleCodeList_market';

export function getToken() {
	return localStorage.getItem(TokenKey);
}

export function setToken(token) {
	return localStorage.setItem(TokenKey, token);
}

export function removeToken() {
	return localStorage.removeItem(TokenKey);
}
export function getImgSrc() {
	return localStorage.getItem(ImgSrcKey);
}

export function setImgSrc(ImgSrc) {
	return localStorage.setItem(ImgSrcKey, ImgSrc);
}

export function removeImgSrc() {
	return localStorage.removeItem(ImgSrcKey);
}

export function getRoleCodeList() {
	return JSON.parse(localStorage.getItem(RoleCodeListKey));
}

export function setRoleCodeList(RoleCodeList) {
	return localStorage.setItem(RoleCodeListKey, JSON.stringify(RoleCodeList));
}

export function removeRoleCodeList() {
	return localStorage.removeItem(RoleCodeListKey);
}
